<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
		
				
				<table class="table table-condensed table-bordered table-hover" style="width: 500px;">
					<tr >
						<th>标题</th>
						<th>广告链接</th>
						<th>图片</th>
					</tr>
					<c:forEach items="${pageModel.list }" var="photo" varStatus="s">
						<tr dataid=${photo.id } onclick="edit('photo',${photo.id})" data-toggle="tooltip" title="双击编辑">
							<td>${photo.title }</td>
							<td>${photo.site}
							</td>
							<td>
								<img  src="${photo.picUrl}" style="width:250px;height:109px;cursor: pointer;">
							</td>
						</tr>
					</c:forEach>
				</table>
			<div class="btn-toolbar">
				<div class="btn-group">
					
					<c:if test="${pageModel.totalRecord<5 || empty pageModel.list }"><button id="add_btn" class="btn btn-primary" onclick="add('photo')">新增</button></c:if>
					<!-- <button id="del_btn" class="btn btn-primary" onclick="del('photo');">删除</button> -->
				</div>
			</div>
				<p id="pager">
    
<script type="text/javascript">

   
</script>
